#include <stdio.h>
/**
 * 结构体可以整个的赋值
 **/

struct s_tag{ int a[100]; };

struct s_tag twofold(struct s_tag s) {
    for (int j=0; j<100;j++) s.a[j] <<=1;
    return s;
}
int main(void)
{
    struct s_tag orange, lime, lemon;
    for (int i = 0;i<100; i++) lime.a[i] = 1;
    lemon = twofold(lime);
    orange = lemon; // 给整个结构赋值
    for (int i=0; i<100;i++) printf("%d ", orange.a[i]);
    return 0;
}